#include "..\headers\ListOf.h"
#define MAXNUM 1e5

char nums[(long long)MAXNUM] = {0};

int minActions(char* nums, int numsSize, int k, int maxChanges) {
  int aliceIndex = 0;
  int actions = 0;
  int pickedOnes = 0;
}

int main() {
  int k, maxchange;
  scanf("%s", nums);
  if (k == 0) {
    printf("0");
    return 0;
  }
  scanf("%d %d", &k, &maxchange);
  int actions = minActions(nums, strlen(nums), k, maxchange);
  printf("%d", actions);
}
